package com.vogue.supplymall.order.domain.model;

import java.io.Serializable;
import java.math.BigDecimal;

import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 预付款使用明细
 * @author 崔岳
 *
 */
@Entity
@Table(name = "account_prepay_detail")
public class AccountPrepayDetail extends TendBaseEntity implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 9147433821265587568L;

	/**
	 * 订单id
	 */
	private Long orderid;
	
	/**
	 * 退货单id
	 */
	private Long refundid = 0L;
	
	/**
	 * 账户id
	 */
	private Long accountid;
	
	/**
	 * 系统注册号id
	 */
	private Long sellsyscodeid;
	
	/**
	 * 买家门店id
	 */
	private Long sellorganid;
	
	/**
	 * 对应的供应链系统中的organid
	 */
	private String sellmatchid;
	
	/**
	 * 系统注册号id
	 */
	private Long buysyscodeid;
	
	/**
	 * 卖家门店id
	 */
	private Long buyorganid;
	
	/**
	 * 对应的供应链系统中的organid
	 */
	private String buymatchid;
	
	/**
	 * 账单金额
	 */
	private BigDecimal amount;
	
	/**
	 * 使用类型【1:消费 2:充值 3:退款 4:退货单退款】
	 */
	private Integer type;
	
	/**
	 * 来源【1:云 2:食尚购】
	 */
	private Integer origin;
	/**
	 * 云供应链单据的id
	 */
	private String arapbillid = "";
	/**
	 * 备注
	 */
	private String memo;
	/**
	 * 串码号
	 */
	private String serialnum = "";

	public String getSerialnum() {
		return serialnum;
	}

	public void setSerialnum(String serialnum) {
		this.serialnum = serialnum;
	}

	public Long getOrderid() {
		return orderid;
	}

	public void setOrderid(Long orderid) {
		this.orderid = orderid;
	}

	public Long getAccountid() {
		return accountid;
	}

	public void setAccountid(Long accountid) {
		this.accountid = accountid;
	}

	public Long getSellsyscodeid() {
		return sellsyscodeid;
	}

	public void setSellsyscodeid(Long sellsyscodeid) {
		this.sellsyscodeid = sellsyscodeid;
	}

	public Long getSellorganid() {
		return sellorganid;
	}

	public void setSellorganid(Long sellorganid) {
		this.sellorganid = sellorganid;
	}

	public String getSellmatchid() {
		return sellmatchid;
	}

	public void setSellmatchid(String sellmatchid) {
		this.sellmatchid = sellmatchid;
	}

	public Long getBuysyscodeid() {
		return buysyscodeid;
	}

	public void setBuysyscodeid(Long buysyscodeid) {
		this.buysyscodeid = buysyscodeid;
	}

	public Long getBuyorganid() {
		return buyorganid;
	}

	public void setBuyorganid(Long buyorganid) {
		this.buyorganid = buyorganid;
	}

	public String getBuymatchid() {
		return buymatchid;
	}

	public void setBuymatchid(String buymatchid) {
		this.buymatchid = buymatchid;
	}

	public BigDecimal getAmount() {
		return amount;
	}

	public void setAmount(BigDecimal amount) {
		this.amount = amount;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public Integer getOrigin() {
		return origin;
	}

	public void setOrigin(Integer origin) {
		this.origin = origin;
	}

	public String getMemo() {
		return memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}

	public Long getRefundid() {
		return refundid;
	}

	public void setRefundid(Long refundid) {
		this.refundid = refundid;
	}

	public String getArapbillid() {
		return arapbillid;
	}

	public void setArapbillid(String arapbillid) {
		this.arapbillid = arapbillid;
	}
}
